package com.ewo.mapper;

import com.ewo.entity.ApplicationPage.CustomerProject;
import com.ewo.entity.workOrder.WorkOrderInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface WorkOrderInfoMapper {

    //查找所有工单池信息
    public List<WorkOrderInfo> findAllWorkOrderInfo();

    //根据当前员工id查找相关状态不为1的工单
    public List<WorkOrderInfo> findWorkOrderInfoByEmpId (int empId);

    //查找工单池为未抢单的工单信息
    public List<WorkOrderInfo> findInitWorkOrderInfo();

    //根据工单id修改当前工单状态,并将工单分配给此员工
    public int updateWorkOrderInfoById(int orderId,int work_status,int empId);

    //取消工单,根据工单id修改当前工单状态为1
    public int updateWorkStatusByOrderId(int orderId,int work_status);
    //根据工单id查找工单池信息
    public WorkOrderInfo findWorkOrderInfoByOrderId(int id);

    //根据empId查找今日工单数
    public int findTodayOrder(int empId);
    //根据empId查找本月工单数
    public int findMonthOrder(int empId);


}
